package com.atguigu.springcloud;

import com.atguigu.springcloud.dao.PaymentDao;
import com.atguigu.springcloud.entities.CommonResult;
import com.atguigu.springcloud.entities.Payment;
import com.atguigu.springcloud.service.PaymentService;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class test {
    @Autowired
    PaymentDao paymentDao;
    @Autowired
    PaymentService paymentService;
    @Test
    public void test1(){
//        Payment paymentById = paymentDao.getPaymentById(2L);
//        System.out.println(paymentById);
        Payment paymentById = paymentService.getPaymentById(2L);
        System.out.println(paymentById);
    }


}
